package com.laowang.project.system.service.impl;

import java.util.List;
                                                                import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyCyhGladTidingMapper;
import com.laowang.project.system.domain.MyCyhGladTiding;
import com.laowang.project.system.service.MyCyhGladTidingService;

/**
 * 喜报Service业务层处理
 *
 * @author laowang
 * @date 2024-03-28
 */
@Service
public class MyCyhGladTidingServiceImpl implements MyCyhGladTidingService {
    @Autowired
    private MyCyhGladTidingMapper myCyhGladTidingMapper;

    /**
     * 查询喜报
     *
     * @param id 喜报ID
     * @return 喜报
     */
    @Override
    public MyCyhGladTiding selectMyCyhGladTidingById(Integer id) {
        return myCyhGladTidingMapper.selectMyCyhGladTidingById(id);
    }

    /**
     * 查询喜报列表
     *
     * @param myCyhGladTiding 喜报
     * @return 喜报
     */
    @Override
    public List<MyCyhGladTiding> selectMyCyhGladTidingList(MyCyhGladTiding myCyhGladTiding) {
        return myCyhGladTidingMapper.selectMyCyhGladTidingList(myCyhGladTiding);
    }

    /**
     * 新增喜报
     *
     * @param myCyhGladTiding 喜报
     * @return 结果
     */
    @Override
    public int insertMyCyhGladTiding(MyCyhGladTiding myCyhGladTiding) {
                                                                                                                    return myCyhGladTidingMapper.insertMyCyhGladTiding(myCyhGladTiding);
    }

    /**
     * 修改喜报
     *
     * @param myCyhGladTiding 喜报
     * @return 结果
     */
    @Override
    public int updateMyCyhGladTiding(MyCyhGladTiding myCyhGladTiding) {
                                                                                                                    return myCyhGladTidingMapper.updateMyCyhGladTiding(myCyhGladTiding);
    }

    /**
     * 批量删除喜报
     *
     * @param ids 需要删除的喜报ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhGladTidingByIds(Integer[] ids) {
        return myCyhGladTidingMapper.deleteMyCyhGladTidingByIds(ids);
    }

    /**
     * 删除喜报信息
     *
     * @param id 喜报ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhGladTidingById(Integer id) {
        return myCyhGladTidingMapper.deleteMyCyhGladTidingById(id);
    }
}
